package com.txm.qqcommon;

import java.io.Serializable;

/*
 * 用于存放用户/客户端的信息
 * */
public class User implements Serializable {
    // 增强Serializable的兼容性
    private static final long serialVersionUID = 1L;

    private String username;
    private String userId;
    private String password;
    public User(){}
    public User(String username, String userId, String password) {
        this.username = username;
        this.userId = userId;
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "User{" +
                "username='" + username + '\'' +
                ", userId='" + userId + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
